package  
{
	/**
	 * ...
	 * @author Boothe
	 */ 
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	import net.flashpunk.FP;
	import net.flashpunk.Sfx;
	
	public class Bullet extends Entity
	{
		[Embed(source = "assets/circle.png")] private const PLAYER:Class;
		[Embed(source = "assets/explosion.mp3")]private const EXPLODE:Class;
		
		public var noanimgraphic:Image = new Image(PLAYER);
		public var explode:Sfx = new Sfx(EXPLODE);
		
		public function Bullet(X:int,Y:int) 
		{
			x = X;
			y = Y;
			setHitbox(noanimgraphic.width,noanimgraphic.height)
			graphic = noanimgraphic;
			type = "bullet";
		}
		override public function update():void {
			
		}
		public function destroy():void {
			FP.world.remove(this);
			explode.play();
		}
		
	}

}